package com.loan.common;

/**
 * @author z
 */

public enum HttpResultEnum implements ResponseResultStatus{

    /**通用成功返回*/
    SUCCESS(200,"操作成功"),

    /**通用失败返回*/
    FAILED(500,"服务器异常"),

    SMS_SEND_FAILED(500,"发送短信失败!")
    ;

    private final int code;

    private final String message;

    HttpResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
